/* prebid.js v2.32.0Updated : 2020-01-14 */!function(u){var s=window.owpbjsChunk;window.owpbjsChunk=function(e,t,n){for(var r,i,o,a=0,c=[];a>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},t.getBidIdParameter=function(e,t){if(t&&t[e])return t[e];return""},t.tryAppendQueryString=function(e,t,n){if(n)return e+=t+"="+encodeURIComponent(n)+"&";return e},t.parseQueryStringParameters=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+"="+encodeURIComponent(e[n])+"&");return t},t.transformAdServerTargetingObj=function(t){return t&&0';return n+=''},t.createTrackPixelIframeHtml=se,t.getIframeDocument=function(e){if(!e)return;var t;try{t=e.contentWindow?e.contentWindow.document:e.contentDocument.document?e.contentDocument.document:e.contentDocument}catch(e){_.logError("Cannot get iframe document",e)}return t},t.getValueString=de,t.uniques=fe,t.flatten=le,t.getBidRequest=function(n,e){return n?(e.some(function(e){var t=c()(e.bids,function(t){return["bidId","adId","bid_id"].some(function(e){return t[e]===n})});return t&&(r=t),t}),r):void 0;var r},t.getKeys=pe,t.getValue=ge,t.getKeyByValue=function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t)return n},t.getBidderCodes=function(){return(0';u+="",u+="",u+="",u+=n.adHtml,u+="",s.write(u),s.close()}catch(c){E.logError("Error in rendering creative in safe frame."),E.log(c),E.log("Rendering synchronously."),E.displayCreative(window.document,msgData.pwt_bid)}else n.adUrl?E.writeIframe(window.document,n.adUrl,n.width,n.height,""):(E.logWarning("creative details are not found"),E.log(n))}break;case 3:var t=d.getBidById(msgData.pwt_bidID);if(t){var n=t.bid,i=n.getAdapterID(),r=t.slotid;E.vLogInfo(r,{type:"disp",adapter:i}),msgData.pwt_action&&"imptrackers"==msgData.pwt_action&&d.executeMonetizationPixel(r,n),d.fireTracker(n,msgData.pwt_action)}}}catch(c){}},t.addMessageEventListenerForSafeFrame=function(e){E.addMessageEventListener(e,E.safeFrameCommunicationProtocol)},t.getElementLocation=function(e){var t,n=0,i=0;if(E.isFunction(e.getBoundingClientRect))t=e.getBoundingClientRect(),n=Math.floor(t.left),i=Math.floor(t.top);else for(;e;)n+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return{x:n,y:i}},t.createVLogInfoPanel=function(e,t){var n,i,r,o=window.document;if(E.visualDebugLogIsEnabled&&(n=o.getElementById(e),n&&t.length&&t[0][0]&&t[0][1]&&(r=e+"-pwtc-info",!E.isUndefined(o.getElementById(r))))){var a=E.getElementLocation(n);i=o.createElement("div"),i.id=r,i.style="position: absolute; /*top: "+a.y+"px;*/ left: "+a.x+"px; width: "+t[0][0]+"px; height: "+t[0][1]+"px; border: 1px solid rgb(255, 204, 52); padding-left: 11px; background: rgb(247, 248, 224) none repeat scroll 0% 0%; overflow: auto; z-index: 9999997; visibility: hidden;opacity:0.9;font-size:13px;font-family:monospace;";var s=o.createElement("img");s.src=E.metaInfo.protocol+"ads.pubmatic.com/AdServer/js/pwt/close.png",s.style="cursor:pointer; position: absolute; top: 2px; left: "+(a.x+t[0][0]-16-15)+"px; z-index: 9999998;",s.title="close",s.onclick=function(){i.style.display="none"},i.appendChild(s),i.appendChild(o.createElement("br"));for(var d="Slot: "+e+" | ",u=0;ua&&(a=0),d=t.hasOwnProperty("adServerCurrency")&&void 0!==t.adServerCurrency?0==t.adServerCurrency?"USD":t.adServerCurrency:"USD",i="Bid: "+t.bidder+(t.s2s?"(s2s)":"")+": "+s.getNetEcpm()+"("+s.getGrossEcpm()+")"+d+" :"+a+"ms",s.getPostTimeoutStatus()&&(i+=": POST-TIMEOUT");break;case"win-bid":var s=t.bidDetails,d="";d=t.hasOwnProperty("adServerCurrency")&&void 0!==t.adServerCurrency?0==t.adServerCurrency?"USD":t.adServerCurrency:"USD",i="Winning Bid: "+s.getAdapterID()+": "+s.getNetEcpm()+d;break;case"win-bid-fail":i="There are no bids from PWT";break;case"hr":i="----------------------";break;case"disp":i="Displaying creative from "+t.adapter}n.appendChild(r.createTextNode(i)),n.appendChild(r.createElement("br"))}}},t.getExternalBidderStatus=function(e){var t=!0;return E.forEachOnArray(e,(function(e,n){t=window.OWT.externalBidderStatuses[n]?t&&window.OWT.externalBidderStatuses[n].status:t})),t},t.resetExternalBidderStatus=function(e){E.forEachOnArray(e,(function(e,t){E.log("resetExternalBidderStatus: "+t),window.OWT.externalBidderStatuses[t]=void 0}))},t.ajaxRequest=function(e,t,n,i){try{i=i||{};var r,o=4,a=!0,s=i.method||(n?"POST":"GET");if(window.XMLHttpRequest?(r=new window.XMLHttpRequest,E.isUndefined(r.responseType)&&(a=!1)):a=!1,!a)return E.log("Ajax is not supported"),void 0;r.onreadystatechange=function(){r.readyState===o&&t&&t(r.responseText,r)},r.open(s,e),i.withCredentials&&(r.withCredentials=!0),i.preflight&&r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-Type",i.contentType||"text/plain"),r.send("POST"===s&&n)}catch(d){E.log("Failed in Ajax"),E.log(d)}},t.getMediaTypeObject=function(e,t,n){var i={};if(e)if(e.kgp&&e.klm){var r=e.kgp,o=e.klm,s=E.generateSlotNamesFromPattern(n,r)[0];if(E.isOwnProperty(o,s)){E.log("Native Config found for adSlot: "+n);var d=o[s];if(i["native"]=d.config,d[a.COMMON.NATIVE_ONLY])return i}else E.log("Native Config not found for adSlot: "+n)}else E.logWarning("Native config not found or KGP/KLM missing in native config provided.");return i.banner={sizes:t},i},t.addEventListenerForClass=function(e,t,n,i){if("function"!=typeof i)return E.log("EventHandler should be a function"),!1;var r=E.findElementsByClass(e,n);e.addEventListener||(t="on"+t);for(var o=0;o-1&&window.googletag.pubads().clearTargeting(a.WRAPPER_TARGETING_KEYS.USER_IDS)},t.setUserIdTargeting=function(){if(E.clearPreviousTargeting(),!window[a.COMMON.PREBID_NAMESPACE]||!E.isFunction(window[a.COMMON.PREBID_NAMESPACE].getUserIds))return E.logWarning(a.MESSAGES.IDENTITY.M1),void 0;var e=E.getUserIds();E.isEmptyObject(e)||E.setUserIdToGPT(e)},t.setUserIdToGPT=function(e){E.log(a.MESSAGES.IDENTITY.M2,e),window.googletag.pubads().setTargeting(a.WRAPPER_TARGETING_KEYS.USER_IDS,JSON.stringify(e))},t.getUserIds=function(){return window[a.COMMON.PREBID_NAMESPACE].getUserIds()},t.getNestedObjectFromArray=function(e,t,n){for(var i=e,r=i,o=0;o-1&&(e[n]=e[n].toLowerCase()),a.JSON_VALUE_KEYS.indexOf(n)>-1&&(e[n]=JSON.parse(e[n])),t=E.getNestedObjectFromString(t,".",n,e[n]))}catch(i){E.logWarning(a.MESSAGES.IDENTITY.M3,i)}return t},t.getDomainFromURL=function(e){var t=window.document.createElement("a");return t.href=e,t.hostname},t.replaceAuctionPrice=function(e,t){return e?e.replace(/\$\{AUCTION_PRICE\}/g,t):void 0}}),(function(e,t,n){function i(){var e=o.COMMON.PARENT_ADAPTER_PREBID;if(!a.isOwnProperty(r.adapters,e)){var t={};t[o.CONFIG.REV_SHARE]="0.0",t[o.CONFIG.THROTTLE]="100",t[o.CONFIG.KEY_GENERATION_PATTERN]="_DIV_",t[o.CONFIG.KEY_LOOKUP_MAP]={},r.adapters[e]=t}}var r=n(3),o=n(4),a=n(1),s=null;s=this,t.getPublisherId=function(){return a.trim(r.pwt.pubid)||"0"},t.getMataDataPattern=function(){return a.isString(r[o.CONFIG.COMMON][o.CONFIG.META_DATA_PATTERN])?r[o.CONFIG.COMMON][o.CONFIG.META_DATA_PATTERN]:null},t.getSendAllBidsStatus=function(){return window.parseInt(r[o.CONFIG.COMMON][o.CONFIG.SEND_ALL_BIDS])||0},t.getTimeout=function(){return window.parseInt(r.pwt.t)||1e3},t.getDisableAjaxTimeout=function(){var e=r.pwt;return a.isOwnProperty(e,o.CONFIG.DISABLE_AJAX_TIMEOUT)?1==r.pwt.disableAjaxTimeout:!0},t.getAdapterRevShare=function(e){var t=r.adapters;return a.isOwnProperty(t[e],o.CONFIG.REV_SHARE)?1-window.parseFloat(t[e][o.CONFIG.REV_SHARE])/100:1},t.getAdapterThrottle=function(e){var t=r.adapters;return a.isOwnProperty(t[e],o.CONFIG.THROTTLE)?100-window.parseFloat(t[e][o.CONFIG.THROTTLE]):0},t.isServerSideAdapter=function(e){var t=r.adapters;return t[e]&&a.isOwnProperty(t[e],o.CONFIG.SERVER_SIDE_ENABLED)?1===window.parseInt(t[e][o.CONFIG.SERVER_SIDE_ENABLED]):!1},t.getAdapterMaskBidsStatus=function(e){var t=r.adapters,n={audienceNetwork:1};return a.isOwnProperty(n,e)?n[e]:a.isOwnProperty(t[e],o.CONFIG.MASK_BIDS)?window.parseInt(t[e][o.CONFIG.MASK_BIDS])||0:0},t.getBidPassThroughStatus=function(e){var t=r.adapters;return a.isOwnProperty(t[e],o.CONFIG.BID_PASS_THROUGH)?window.parseInt(t[e][o.CONFIG.BID_PASS_THROUGH]):0},t.getProfileID=function(){return a.trim(r.pwt[o.CONFIG.PROFILE_ID])||"0"},t.getProfileDisplayVersionID=function(){return a.trim(r.pwt[o.CONFIG.PROFILE_VERSION_ID])||"0"},t.getAnalyticsPixelURL=function(){return r.pwt[o.CONFIG.LOGGER_URL]||!1},t.getMonetizationPixelURL=function(){return r.pwt[o.CONFIG.TRACKER_URL]||!1},t.forEachAdapter=function(e){a.forEachOnObject(r.adapters,e)},t.getGdpr=function(){var e=r[o.CONFIG.COMMON][o.CONFIG.GDPR_CONSENT]||o.CONFIG.DEFAULT_GDPR_CONSENT;return"1"===e},t.getCmpApi=function(){return r[o.CONFIG.COMMON][o.CONFIG.GDPR_CMPAPI]||o.CONFIG.DEFAULT_GDPR_CMPAPI},t.getGdprTimeout=function(){var e=r[o.CONFIG.COMMON][o.CONFIG.GDPR_TIMEOUT];return e?window.parseInt(e):o.CONFIG.DEFAULT_GDPR_TIMEOUT},t.getAwc=function(){var e=r[o.CONFIG.COMMON][o.CONFIG.GDPR_AWC]||o.CONFIG.DEFAULT_GDPR_AWC;return"1"===e},t.addPrebidAdapter=i,t.initConfig=function(){s.addPrebidAdapter();var e={};a.forEachOnObject(o.CONFIG,(function(t,n){e[n]=""})),a.forEachOnObject(r.adapters,(function(t,n){var i={};a.forEachOnObject(n,(function(t,n){a.isOwnProperty(e,t)||(i[t]=n)})),a.forEachOnObject(n[o.CONFIG.KEY_LOOKUP_MAP],(function(e,t){a.forEachOnObject(i,(function(e,n){t[e]=n}))})),"pubmatic"!=t&&"pubmatic2"!=t&&a.forEachOnObject(n[o.CONFIG.REGEX_KEY_LOOKUP_MAP],(function(e,t){a.forEachOnObject(i,(function(e,n){a.isOwnProperty(t,"rx_config")&&(t.rx_config[e]=n)}))}))}))},t.getNativeConfiguration=function(){return r[o.COMMON.NATIVE_MEDIA_TYPE_CONFIG]},t.getAdServerCurrency=function(){return r[o.CONFIG.COMMON][o.COMMON.AD_SERVER_CURRENCY]},t.isSingleImpressionSettingEnabled=function(){return parseInt(r[o.CONFIG.COMMON][o.COMMON.SINGLE_IMPRESSION]||o.CONFIG.DEFAULT_SINGLE_IMPRESSION)},t.isUserIdModuleEnabled=function(){return parseInt(r[o.CONFIG.COMMON][o.COMMON.ENABLE_USER_ID]||o.CONFIG.DEFAULT_USER_ID_MODULE)},t.getIdentityPartners=function(){return r[o.COMMON.IDENTITY_PARTNERS]},t.isIdentityOnly=function(){return parseInt(r[o.CONFIG.COMMON][o.COMMON.IDENTITY_ONLY]||o.CONFIG.DEFAULT_IDENTITY_ONLY)},t.getIdentityConsumers=function(){return(r[o.CONFIG.COMMON][o.COMMON.IDENTITY_CONSUMERS]||"").toLowerCase()}}),(function(e,t){t.pwt={t:"1000",pid:"551",gcv:"96",pdvid:"29",pubid:"156066",dataURL:"t.pubmatic.com/wl?",winURL:"t.pubmatic.com/wt?",metaDataPattern:0,sendAllBids:"0",adserver:"DFP",gdpr:"1",cmp:"iab",gdprTimeout:"300",awc:"1",platform:"display",refreshInterval:0,priceGranularity:0,adServerCurrency:0,singleImpression:"1",identityEnabled:"0",identityConsumers:0,ccpa:"0",ccpaCmpApi:0,ccpaTimeout:0},t.adapters={pubmatic:{publisherId:"156066",rev_share:"0.0",timeout:"1000",throttle:"100",pt:0,serverSideEnabled:"0",amp:0,video:0,"in-app":0,kgp:"_AU_@_W_x_H_:_AUI_",sk:"true"},rubicon:{accountId:"11350",rev_share:"0.0",timeout:"1000",throttle:"100",pt:0,serverSideEnabled:"0",amp:0,video:0,"in-app":0,kgp:"_AU_@_W_x_H_",klm:{"/1007232/Indiatoday_ROS_BTF_728x90-300x250@728x90":{zoneId:"903654",siteId:"30246",floor:"0.01"},"/1007232/Indiatoday_ROS_ATF_300x250@300x250":{zoneId:"903636",siteId:"30246",floor:"0.01"},"/1007232/Indiatoday_ROS_ATF_728x90-300x250@728x90":{zoneId:"903646",siteId:"30246",floor:"0.01"},"/1007232/Indiatoday_HP_Desktop_300x100@300x100":{zoneId:"903662",siteId:"30246",floor:"0.01"},"/1007232/Indiatoday_HP_ATF_300x250_1@300x250":{zoneId:"903628",siteId:"30246",floor:"0.01"},"/1007232/Indiatoday_HP_MTF_300x250@300x250":{zoneId:"917304",siteId:"30246",floor:"0.01"},"/1007232/Indiatoday_ROS_MTF_300x250@300x250":{zoneId:"917306",siteId:"30246",floor:"0.01"},"/1007232/Indiatoday_HP_ATF_728x90-300x250@728x90":{zoneId:"903660",siteId:"30246",floor:"0.01"},"/1007232/Indiatoday_HP_BTF_728x90-300x250@728x90":{zoneId:"903632",siteId:"30246",floor:"0.01"}}},ix:{rev_share:"0.0",timeout:"1000",throttle:"100",pt:0,serverSideEnabled:"0","in-app":0,amp:0,kgp:"_AU_@_W_x_H_",klm:{"/1007232/Indiatoday_ROS_BTF_728x90-300x250@728x90":{siteID:"266129",id:"9"},"/1007232/Indiatoday_ROS_ATF_300x250@300x250":{siteID:"266126",id:"6"},"/1007232/Indiatoday_Story_300x250_Inarticle@300x250":{siteID:"266130",id:"10"},"/1007232/Indiatoday_ROS_MTF_300x200@300x200":{siteID:"266128",id:"8"},"/1007232/Indiatoday_ROS_ATF_728x90-300x250@728x90":{siteID:"266125",id:"5"},"/1007232/Indiatoday_HP_ATF_300x250_1@300x250":{siteID:"266122",id:"2"},"/1007232/Indiatoday_HP_MTF_300x250@300x250":{siteID:"266123",id:"3"},"/1007232/Indiatoday_ROS_MTF_300x250@300x250":{siteID:"266127",id:"7"},"/1007232/Indiatoday_HP_ATF_728x90-300x250@728x90":{siteID:"260814",id:"1"},"/1007232/Indiatoday_HP_BTF_728x90-300x250@728x90":{siteID:"266124",id:"4"}}},appnexus:{rev_share:"0.0",timeout:"1000",throttle:"100",pt:0,serverSideEnabled:"0",amp:0,video:0,"in-app":0,kgp:"_AU_@_W_x_H_",klm:{"/1007232/Indiatoday_ROS_BTF_728x90-300x250@728x90":{placementId:"13302239"},"/1007232/Indiatoday_ROS_ATF_300x250@300x250":{placementId:"13302236"},"/1007232/Indiatoday_Story_300x250_Inarticle@300x250":{placementId:"13302240"},"/1007232/Indiatoday_ROS_MTF_300x200@300x200":{placementId:"13302238"},"/1007232/Indiatoday_ROS_ATF_728x90-300x250@728x90":{placementId:"13302235"},"/1007232/Indiatoday_HP_ATF_300x250_1@300x250":{placementId:"13302232"},"/1007232/Indiatoday_HP_MTF_300x250@300x250":{placementId:"13302233"},"/1007232/Indiatoday_ROS_MTF_300x250@300x250":{placementId:"13302237"},"/1007232/Indiatoday_HP_ATF_728x90-300x250@728x90":{placementId:"13302231"},"/1007232/Indiatoday_HP_BTF_728x90-300x250@728x90":{placementId:"13302234"}}}},t.identityPartners={}}),(function(e,t){t.COMMON={BID_PRECISION:2,DEAL_KEY_FIRST_PART:"pwtdeal_",DEAL_KEY_VALUE_SEPARATOR:"_-_",PREBID_PREFIX:"PB_",CONFIG:"config",DIV_ID:"divID",PARAMS:"params",SIZES:"sizes",HEIGHT:"height",WIDTH:"width",SLOTS:"slots",KEY_GENERATION_PATTERN_VALUE:"kgpv",KEY_VALUE_PAIRS:"kvp",IMPRESSION_ID:"iid",PARENT_ADAPTER_PREBID:"prebid",ANALYTICS_CURRENCY:"USD",NATIVE_MEDIA_TYPE_CONFIG:"nativeConfig",NATIVE_ONLY:"nativeOnly",OW_CLICK_NATIVE:"openwrap-native-click",BID_ID:"owbidid",AD_SERVER_CURRENCY:"adServerCurrency",SINGLE_IMPRESSION:"singleImpression",PREBID_NAMESPACE:"owpbjs",ENABLE_USER_ID:"identityEnabled",IDENTITY_PARTNERS:"identityPartners",IDENTITY_CONSUMERS:"identityConsumers",IDENTITY_ONLY:"identityOnly",GAM:"eb",TAM:"tam",PREBID:"prebid",PROTOCOL:"https://"},t.CONFIG={GLOBAL:"global",ADAPTERS:"adapters",COMMON:"pwt",TIMEOUT:"t",KEY_GENERATION_PATTERN:"kgp",REGEX_KEY_GENERATION_PATTERN:"kgp_rx",REGEX_KEY_LOOKUP_MAP:"klm_rx",KEY_LOOKUP_MAP:"klm",SERVER_SIDE_KEY:"sk",PUBLISHER_ID:"pubid",PROFILE_ID:"pid",PROFILE_VERSION_ID:"pdvid",LOGGER_URL:"dataURL",TRACKER_URL:"winURL",REV_SHARE:"rev_share",THROTTLE:"throttle",BID_PASS_THROUGH:"pt",GLOBAL_KEY_VALUE:"gkv",MASK_BIDS:"maksBids",META_DATA_PATTERN:"metaDataPattern",SEND_ALL_BIDS:"sendAllBids",SERVER_SIDE_ENABLED:"serverSideEnabled",GDPR_CONSENT:"gdpr",CONSENT_STRING:"cns",GDPR_CMPAPI:"cmpApi",GDPR_TIMEOUT:"gdprTimeout",GDPR_AWC:"awc",DEFAULT_GDPR_CMPAPI:"iab",DEFAULT_GDPR_TIMEOUT:1e4,DEFAULT_GDPR_AWC:"0",DEFAULT_SINGLE_IMPRESSION:"0",DEFAULT_USER_ID_MODULE:"0",DEFAULT_IDENTITY_ONLY:"0",DEFAULT_GDPR_CONSENT:"0",DISABLE_AJAX_TIMEOUT:"disableAjaxTimeout"},t.METADATA_MACROS={WIDTH:"_W_",HEIGHT:"_H_",PARTNER:"_P_",GROSS_ECPM:"_GE_",NET_ECPM:"_NE_",BID_COUNT:"_BC_",PARTNER_COUNT:"_PC_"},t.MACROS={WIDTH:"_W_",HEIGHT:"_H_",AD_UNIT_ID:"_AU_",AD_UNIT_INDEX:"_AUI_",INTEGER:"_I_",DIV:"_DIV_"},t.SLOT_STATUS={CREATED:0,PARTNERS_CALLED:1,TARGETING_ADDED:2,DISPLAYED:3},t.WRAPPER_TARGETING_KEYS={BID_ID:"pwtsid",BID_STATUS:"pwtbst",BID_ECPM:"pwtecp",BID_DEAL_ID:"pwtdid",BID_ADAPTER_ID:"pwtpid",BID_SIZE:"pwtsz",PUBLISHER_ID:"pwtpubid",PROFILE_ID:"pwtprofid",PROFILE_VERSION_ID:"pwtverid",META_DATA:"pwtm",PLATFORM_KEY:"pwtplt",USER_IDS:"pwtuid"},t.IGNORE_PREBID_KEYS={hb_bidder:1,hb_adid:1,hb_pb:1,hb_size:1,hb_deal:1},t.LOGGER_PIXEL_PARAMS={TIMESTAMP:"tst",PAGE_URL:"purl",PAGE_DOMAIN:"orig",TIMEOUT:"to"},t.MESSAGES={M1:": In fetchbids.",M2:": Throttled.",M3:": adapter must implement the fetchBids() function.",M4:"BidManager: entry ",M5:": Callback.",M6:"bidAlreadExists : ",M7:": Exiting from fetchBids.",M8:". Config not found, ignored.",M9:". Config ignored.",M10:"Bid is rejected as ecpm is NULL.",M11:"Bid is rejected as ecpm is NaN: ",M12:"Existing bid ecpm: ",M13:", is lower than new bid ecpm ",M14:", so we are replacing bid from partner ",M15:", is greater than new bid ecpm ",M16:", so we are not replacing bid from partner ",M17:"Post timeout bid, ignored.",M18:"Bid is selected for partner ",M19:": Found winning adapterID: ",M20:"Bid is rejected as ecpm is empty string.",M21:": error in respose handler.",M22:"Bid is rejected as ecpm is <= 0.",M23:"Existing bid is default-bid with zero ecpm, thus replacing it with the new bid from partner ",M24:"Passsed argument is not a bidAdaptor",M25:"Bid details not found for bidID: ",M26:"Currency Module is Activated. Ad Server Currency is: ",M27:"Invalid regex pattern ",M28:"Unable to match regex pattern as kgpv length is not 3",IDENTITY:{M1:"Unable to get User Id from OpenIdentity",M2:"Setting UserIds to EB ",M3:"Unable to parse User ID configuration",M4:"User Id Condiguration Sent to prebid ",M5:"Identity only enabled, no need to process. Calling Original function "}},t.PLATFORM_VALUES={DISPLAY:"display",NATIVE:"native"},t.FORMAT_VALUES={BANNER:"banner",VIDEO:"video",NATIVE:"native",OTHER:"other"},t.HOOKS={PREBID_SET_CONFIG:"HookForPrebidSetConfig",PREBID_REQUEST_BIDS:"HookForPrebidRequestBids",BID_RECEIVED:"HookForBidReceived",POST_AUCTION_KEY_VALUES:"HookForPostAuctionKeyValues"},t.SRA_ENABLED_BIDDERS={rubicon:1,improvedigital:2},t.EXCLUDE_IDENTITY_PARAMS=["rev_share","timeout","throttle"],t.TOLOWERCASE_IDENTITY_PARAMS=["storage.type"],t.JSON_VALUE_KEYS=["params.clientIdentifier"]}),(function(e,t,n){function i(e,t){this.adapterID=e,this.kgpv=t,this.bidID=a.getUniqueIdentifierStr(),this.grossEcpm=0,this.netEcpm=0,this.defaultBid=0,this.adHtml="",this.adUrl="",this.height=0,this.width=0,this.creativeID="",this.keyValuePairs={},this.isPostTimeout=!1,this.receivedTime=0,this.isServerSide=r.isServerSideAdapter(e)?1:0,this.dealID="",this.dealChannel="",this.isWinningBid=!1,this.status=0,this.serverSideResponseTime=0,this.mi=void 0,this.originalCpm=0,this.originalCurrency="",this.analyticsGrossCpm=0,this.analyticsNetCpm=0,this.native=void 0,this.adFormat=void 0,this.regexPattern=void 0}var r=n(2),o=n(4),a=n(1),s=function(e,t){return window.parseFloat((e*r.getAdapterRevShare(t)).toFixed(o.COMMON.BID_PRECISION))};i.prototype.setServerSideResponseTime=function(e){this.serverSideResponseTime=e},i.prototype.getServerSideResponseTime=function(){return this.serverSideResponseTime},i.prototype.getServerSideStatus=function(){return this.isServerSide},i.prototype.setServerSideStatus=function(e){this.isServerSide=e},i.prototype.getAdapterID=function(){return this.adapterID},i.prototype.getBidID=function(){return this.bidID},i.prototype.setGrossEcpm=function(e){return null===e?(a.log(o.MESSAGES.M10),a.log(this),this):a.isString(e)&&(e=e.replace(/\s/g,""),0===e.length)?(a.log(o.MESSAGES.M20),a.log(this),this):window.isNaN(e)?(a.log(o.MESSAGES.M11+e),a.log(this),this):(e=window.parseFloat(e.toFixed(o.COMMON.BID_PRECISION)),this.grossEcpm=e,this.netEcpm=s(this.grossEcpm,this.getAdapterID()),this)},i.prototype.getGrossEcpm=function(e){return r.getAdServerCurrency()&&this.analyticsGrossCpm&&e?this.analyticsGrossCpm:this.grossEcpm},i.prototype.getNetEcpm=function(e){return r.getAdServerCurrency()&&this.analyticsNetCpm&&e?this.analyticsNetCpm:this.netEcpm},i.prototype.setDefaultBidStatus=function(e){return this.defaultBid=e,this},i.prototype.getDefaultBidStatus=function(){return this.defaultBid},i.prototype.setAdHtml=function(e){return this.adHtml=e,this.setAdFormat(e),this},i.prototype.getAdHtml=function(){return this.adHtml},i.prototype.setAdUrl=function(e){return this.adUrl=e,this},i.prototype.getAdUrl=function(){return this.adUrl},i.prototype.setHeight=function(e){return this.height=e,this},i.prototype.getHeight=function(){return this.height},i.prototype.setWidth=function(e){return this.width=e,this},i.prototype.getWidth=function(){return this.width},i.prototype.getKGPV=function(e){return!e&&this.regexPattern?this.regexPattern:this.kgpv},i.prototype.setKeyValuePair=function(e,t){return this.keyValuePairs[e.substr(0,20)]=t,this},i.prototype.getKeyValuePairs=function(){return this.keyValuePairs},i.prototype.setPostTimeoutStatus=function(){return this.isPostTimeout=!0,this},i.prototype.getPostTimeoutStatus=function(){return this.isPostTimeout},i.prototype.setReceivedTime=function(e){return this.receivedTime=e,this},i.prototype.getReceivedTime=function(){return this.receivedTime},i.prototype.setDealID=function(e){return e&&(this.dealID=e,this.dealChannel=this.dealChannel||"PMP",this.setKeyValuePair(o.COMMON.DEAL_KEY_FIRST_PART+this.adapterID,this.dealChannel+o.COMMON.DEAL_KEY_VALUE_SEPARATOR+this.dealID+o.COMMON.DEAL_KEY_VALUE_SEPARATOR+this.bidID)),this},i.prototype.getDealID=function(){return this.dealID},i.prototype.setDealChannel=function(e){return this.dealID&&e&&(this.dealChannel=e,this.setKeyValuePair(o.COMMON.DEAL_KEY_FIRST_PART+this.adapterID,this.dealChannel+o.COMMON.DEAL_KEY_VALUE_SEPARATOR+this.dealID+o.COMMON.DEAL_KEY_VALUE_SEPARATOR+this.bidID)),this},i.prototype.getDealChannel=function(){return this.dealChannel},i.prototype.setWinningBidStatus=function(){return this.isWinningBid=!0,this},i.prototype.getWinningBidStatus=function(){return this.isWinningBid},i.prototype.setStatus=function(e){return this.status=e,this},i.prototype.getStatus=function(){return this.status},i.prototype.setSendAllBidsKeys=function(){if(this.setKeyValuePair(o.WRAPPER_TARGETING_KEYS.BID_ID+"_"+this.adapterID,this.bidID),this.setKeyValuePair(o.WRAPPER_TARGETING_KEYS.BID_STATUS+"_"+this.adapterID,this.getNetEcpm()>0?1:0),this.setKeyValuePair(o.WRAPPER_TARGETING_KEYS.BID_ECPM+"_"+this.adapterID,this.getNetEcpm().toFixed(o.COMMON.BID_PRECISION)),this.setKeyValuePair(o.WRAPPER_TARGETING_KEYS.BID_SIZE+"_"+this.adapterID,this.width+"x"+this.height),this.native){var e=this.keyValuePairs,t=this;a.forEachOnObject(e,(function(e,n){e.indexOf("native")>=0&&t.setKeyValuePair(e+"_"+t.adapterID,n)}))}},i.prototype.setMi=function(e){return this.mi=e,this},i.prototype.getMi=function(){return this.mi},i.prototype.setOriginalCpm=function(e){return this.originalCpm=window.parseFloat(e.toFixed(o.COMMON.BID_PRECISION)),this},i.prototype.getOriginalCpm=function(){return this.originalCpm},i.prototype.setOriginalCurrency=function(e){return this.originalCurrency=e,this},i.prototype.getOriginalCurrency=function(){return this.originalCurrency},i.prototype.setAnalyticsCpm=function(e){return this.analyticsGrossCpm=window.parseFloat(e.toFixed(o.COMMON.BID_PRECISION)),this.analyticsNetCpm=s(this.analyticsGrossCpm,this.getAdapterID()),this},i.prototype.getAnalyticsCpm=function(){return this.analyticsGrossCpm},i.prototype.getNative=function(){return this.native},i.prototype.setNative=function(e){return this.native=e,this},i.prototype.getAdFormat=function(){return this.adFormat},i.prototype.setAdFormat=function(e){return this.adFormat=a.getAdFormatFromBidAd(e),this},i.prototype.getRegexPattern=function(){return this.regexPattern},i.prototype.setRegexPattern=function(e){return this.regexPattern=e,this},e.exports.Bid=i,t.createBid=function(e,t){return new i(e,t)}}),(function(e,t,n){function i(e){p.isOwnProperty(window.PWT.bidMap,e)||(window.PWT.bidMap[e]=I.createBMEntry(e))}function r(e,t,n,i){window.PWT.bidMap[e].setNewBid(t,n),window.PWT.bidIdMap[n.getBidID()]={s:e,a:t},0===n.getDefaultBidStatus()&&"pubmaticServer"!==n.adapterID&&p.vLogInfo(e,{type:"bid",bidder:t+(0!==l.getBidPassThroughStatus(t)?"(Passthrough)":""),bidDetails:n,latency:i,s2s:l.isServerSideAdapter(t),adServerCurrency:p.getCurrencyToDisplay()})}function o(e,t,n){var i="",r=0,o=0,s=g.METADATA_MACROS,d="g";p.forEachOnObject(t.adapters,(function(t,n){""!=n.getLastBidID()&&("pubmaticServer"!==t&&o++,p.forEachOnObject(n.bids,(function(t,n){1!=n.getDefaultBidStatus()&&1!=n.getPostTimeoutStatus()&&0!=n.getGrossEcpm()&&(r++,i+=a(e,n))})))})),0==i.length&&(i=e),i=i.replace(new RegExp(s.BID_COUNT,d),r),i=i.replace(new RegExp(s.PARTNER_COUNT,d),o),n[g.WRAPPER_TARGETING_KEYS.META_DATA]=encodeURIComponent(i)}function a(e,t){var n=g.METADATA_MACROS,i="g";return e.replace(new RegExp(n.PARTNER,i),t.getAdapterID()).replace(new RegExp(n.WIDTH,i),t.getWidth()).replace(new RegExp(n.HEIGHT,i),t.getHeight()).replace(new RegExp(n.GROSS_ECPM,i),t.getGrossEcpm()).replace(new RegExp(n.NET_ECPM,i),t.getNetEcpm())}function s(e){var t=null,n={};return p.forEachOnObject(e.adapters,(function(e,i){var r=E.auctionBidsCallBack(e,i,n,t);t=r.winningBid,n=r.keyValuePairs})),null!==l.getMataDataPattern()&&o(l.getMataDataPattern(),e,n),{wb:t,kvp:n}}function d(e){for(var t in e)t.indexOf("native")>=0&&3===t.split("_").length&&delete e[t]}function u(e,t,n,i){var r=this;return""!=t.getLastBidID()?(p.forEachOnObject(t.bids,(function(t,o){if(o.getPostTimeoutStatus()===!0)return{winningBid:i,keyValuePairs:n};if(1!==o.getDefaultBidStatus()&&1==l.getSendAllBidsStatus()&&o.setSendAllBidsKeys(),null!==i)if(i.getNetEcpm()0?(t.setStatus(1),t.setWinningBidStatus(),p.vLogInfo(e,{type:"win-bid",bidDetails:t,adServerCurrency:p.getCurrencyToDisplay()})):p.vLogInfo(e,{type:"win-bid-fail"})}return{wb:t,kvp:n}},t.getBidById=function(e){if(!p.isOwnProperty(window.PWT.bidIdMap,e))return p.log(g.MESSAGES.M25+e),null;var t=window.PWT.bidIdMap[e].s,n=window.PWT.bidIdMap[e].a;if(p.isOwnProperty(window.PWT.bidMap,t)){p.log("BidID: "+e+", DivID: "+t+g.MESSAGES.M19+n);var i=window.PWT.bidMap[t].getBid(n,e);return null==i?null:{bid:i,slotid:t}}return p.log(g.MESSAGES.M25+e),null},t.displayCreative=function(e,t){var n=E.getBidById(t);if(n){var i=n.bid,r=n.slotid;p.displayCreative(e,i),p.vLogInfo(r,{type:"disp",adapter:i.getAdapterID()}),E.executeMonetizationPixel(r,i)}},t.executeAnalyticsPixel=function(){var e={s:[]},t=l.getPublisherId(),n=f.getUserConsentDataFromLS(),i="",r=l.getAnalyticsPixelURL(),o={};r&&(r=g.COMMON.PROTOCOL+r+"pubid="+t,e[g.CONFIG.PUBLISHER_ID]=l.getPublisherId(),e[g.LOGGER_PIXEL_PARAMS.TIMEOUT]=""+l.getTimeout(),e[g.LOGGER_PIXEL_PARAMS.PAGE_URL]=window.decodeURIComponent(p.metaInfo.pageURL),e[g.LOGGER_PIXEL_PARAMS.PAGE_DOMAIN]=p.metaInfo.pageDomain,e[g.LOGGER_PIXEL_PARAMS.TIMESTAMP]=p.getCurrentTimestamp(),e[g.CONFIG.PROFILE_ID]=l.getProfileID(),e[g.CONFIG.PROFILE_VERSION_ID]=l.getProfileDisplayVersionID(),l.getGdpr()&&(i=n&&n.c?encodeURIComponent(n.c):"",e[g.CONFIG.GDPR_CONSENT]=n&&n.g,e[g.CONFIG.CONSENT_STRING]=i,r+="&gdEn="+(l.getGdpr()?1:0)),p.forEachOnObject(window.PWT.bidMap,(function(e,t){E.analyticalPixelCallback(e,t,o)})),p.forEachOnObject(o,(function(t,n){n.length>0&&(e.s=n,e[g.COMMON.IMPRESSION_ID]=window.encodeURIComponent(t),e.psl=n.psl,p.ajaxRequest(r,(function(){}),"json="+window.encodeURIComponent(JSON.stringify(e)),{contentType:"application/x-www-form-urlencoded",withCredentials:!0}))})))},t.executeMonetizationPixel=function(e,t){var n=l.getMonetizationPixelURL(),i=l.getPublisherId();const r=!0;n&&(n+="pubid="+i,n+="&purl="+window.encodeURIComponent(p.metaInfo.pageURL),n+="&tst="+p.getCurrentTimestamp(),n+="&iid="+window.encodeURIComponent(window.PWT.bidMap[e].getImpressionID()),n+="&bidid="+window.encodeURIComponent(t.getBidID()),n+="&pid="+window.encodeURIComponent(l.getProfileID()),n+="&pdvid="+window.encodeURIComponent(l.getProfileDisplayVersionID()),n+="&slot="+window.encodeURIComponent(e),n+="&pn="+window.encodeURIComponent(t.getAdapterID()),n+="&en="+window.encodeURIComponent(t.getNetEcpm(r)),n+="&eg="+window.encodeURIComponent(t.getGrossEcpm(r)),n+="&kgpv="+window.encodeURIComponent(t.getKGPV()),E.setImageSrcToPixelURL(n))},t.analyticalPixelCallback=c,t.setImageSrcToPixelURL=function(e,t){var n=new window.Image;return void 0==t||t?(n.src=g.COMMON.PROTOCOL+e,void 0):(n.src=e,void 0)},t.getAllPartnersBidStatuses=function(e,t){var n=!0;return p.forEachOnArray(t,(function(t,i){e[i]&&(n=n&&e[i].hasAllPossibleBidsReceived()===!0)})),n},t.loadTrackers=function(e){var t=p.getBidFromEvent(e);window.parent.postMessage(JSON.stringify({pwt_type:"3",pwt_bidID:t,pwt_origin:g.COMMON.PROTOCOL+window.location.hostname,pwt_action:"click"}),"*")},t.executeTracker=function(e){window.parent.postMessage(JSON.stringify({pwt_type:"3",pwt_bidID:e,pwt_origin:g.COMMON.PROTOCOL+window.location.hostname,pwt_action:"imptrackers"}),"*")},t.fireTracker=function(e,t){var n;if("click"===t)n=e["native"]&&e["native"].clickTrackers;else if("imptrackers"===t&&(n=e["native"]&&e["native"].impressionTrackers,e["native"]&&e["native"].javascriptTrackers)){var i=p.createInvisibleIframe();if(!i)throw{message:"Failed to create invisible frame for native javascript trackers"};if(!i.contentWindow)throw{message:"Unable to access frame window for native javascript trackers"};window.document.body.appendChild(i),i.contentWindow.document.open(),i.contentWindow.document.write(e["native"].javascriptTrackers),i.contentWindow.document.close()}(n||[]).forEach((function(e){E.setImageSrcToPixelURL(e,!1)}))},t.setStandardKeys=function(e,t){if(e){t[g.WRAPPER_TARGETING_KEYS.BID_ID]=e.getBidID(),t[g.WRAPPER_TARGETING_KEYS.BID_STATUS]=e.getStatus(),t[g.WRAPPER_TARGETING_KEYS.BID_ECPM]=e.getNetEcpm().toFixed(g.COMMON.BID_PRECISION);var n=e.getDealID();n&&(t[g.WRAPPER_TARGETING_KEYS.BID_DEAL_ID]=n),t[g.WRAPPER_TARGETING_KEYS.BID_ADAPTER_ID]=e.getAdapterID(),t[g.WRAPPER_TARGETING_KEYS.PUBLISHER_ID]=l.getPublisherId(),t[g.WRAPPER_TARGETING_KEYS.PROFILE_ID]=l.getProfileID(),t[g.WRAPPER_TARGETING_KEYS.PROFILE_VERSION_ID]=l.getProfileDisplayVersionID(),t[g.WRAPPER_TARGETING_KEYS.BID_SIZE]=e.width+"x"+e.height,t[g.WRAPPER_TARGETING_KEYS.PLATFORM_KEY]=e.getNative()?g.PLATFORM_VALUES.NATIVE:g.PLATFORM_VALUES.DISPLAY}else p.logWarning("Not generating key-value pairs as invalid winningBid object passed. WinningBid: "),p.logWarning(e)}}),(function(e,t){function n(e,t){return toString.call(e)==="[object "+t+"]"}var i="OpenWrap",r=909090,o=function(e){return n(e,"Function")},a=(function(){try{return window.localStorage&&o(window.localStorage.getItem)&&o(window.localStorage.setItem)}catch(e){return!1}})(),s=function(e,t,n,r){var o;if(a){try{o=window.localStorage.getItem(i)}catch(s){}if(o&&"string"==typeof o)try{o=JSON.parse(o)}catch(s){o={}}else o={};o&&(o.hasOwnProperty(e)||(o[e]={}),o[e].t=(new Date).getTime(),o[e][t]=n,"c"==t&&(o[e].g=r?1:0));try{window.localStorage.setItem(i,JSON.stringify(o))}catch(s){}}};t.setConsentDataInLS=s,t.isCmpFound=function(){return!!window.__cmp},t.getUserConsentDataFromCMP=function(){function e(e){if(e&&e.data&&e.data.__cmp&&e.data.__cmp.result){var t=e.data.__cmp.result;t&&t.consentData?s(n,"c",t.consentData,t.gdprApplies):"string"==typeof t&&s(n,"c",t)}}function t(){window.__cmp("getConsentData","vendorConsents",(function(e){e&&e.consentData?s(n,"c",e.consentData,e.gdprApplies):"string"==typeof e&&s(n,"c",e)}))}var n=r,i=0,o={__cmp:{callId:"iframe:"+ ++i,command:"getConsentData"}};window.__cmp?"function"==typeof window.__cmp?t():setTimeout((function(){"function"==typeof window.__cmp&&t()}),500):(window.top.postMessage(o,"*"),window.addEventListener("message",e))},t.getUserConsentDataFromLS=function(){var e=r,t={c:"",g:0};if(!a)return t;var n;try{n=window.localStorage.getItem(i)}catch(o){}if(n&&"string"==typeof n){try{n=JSON.parse(n)}catch(o){n={}}if(n.hasOwnProperty(e)){var s=n[e];s&&s.c&&s.t&&s.t&&parseInt(s.t,10)>(new Date).getTime()-864e5&&(t.c=s.c,t.g=s.g)}}return t}}),(function(e,t,n){function i(e){this.name=e,this.sizes=[],this.adapters={},this.creationTime=o.getCurrentTimestampInMs(),this.impressionID="",this.analyticsEnabled=!1,this.expired=!1,this.allPossibleBidsReceived=!1}var r=n(4),o=n(1),a=n(9).AdapterEntry;i.prototype.setExpired=function(){return this.expired=!0,this},i.prototype.getExpiredStatus=function(){return this.expired},i.prototype.setAnalyticEnabled=function(){return this.analyticsEnabled=!0,this},i.prototype.getAnalyticEnabledStatus=function(){return this.analyticsEnabled},i.prototype.setNewBid=function(e,t){o.isOwnProperty(this.adapters,e)||(this.adapters[e]=new a(e)),this.adapters[e].setNewBid(t)},i.prototype.getBid=function(e,t){return o.isOwnProperty(this.adapters,e)?this.adapters[e].getBid(t):void 0},i.prototype.getName=function(){return this.name},i.prototype.getCreationTime=function(){return this.creationTime},i.prototype.setImpressionID=function(e){return this.impressionID=e,this},i.prototype.getImpressionID=function(){return this.impressionID},i.prototype.setSizes=function(e){return this.sizes=e,this},i.prototype.getSizes=function(){return this.sizes},i.prototype.setAdapterEntry=function(e){return o.isOwnProperty(this.adapters,e)||(this.adapters[e]=new a(e),o.log(r.MESSAGES.M4+this.name+" "+e+" "+this.adapters[e].getCallInitiatedTime())),this},i.prototype.getLastBidIDForAdapter=function(e){return o.isOwnProperty(this.adapters,e)?this.adapters[e].getLastBidID():""},i.prototype.setAllPossibleBidsReceived=function(){return this.allPossibleBidsReceived=!0,this},i.prototype.hasAllPossibleBidsReceived=function(){return this.allPossibleBidsReceived},e.exports.BMEntry=i,t.createBMEntry=function(e){return new i(e)}}),(function(e,t,n){function i(e){this.adapterID=e,this.callInitiatedTime=r.getCurrentTimestampInMs(),this.bids={},this.lastBidID=""}var r=n(1);i.prototype.getCallInitiatedTime=function(){return this.callInitiatedTime},i.prototype.getLastBidID=function(){return this.lastBidID},i.prototype.getBid=function(e){return r.isOwnProperty(this.bids,e)?this.bids[e]:null},i.prototype.setNewBid=function(e){delete this.bids[this.lastBidID];var t=e.getBidID();this.bids[t]=e,this.lastBidID=t},e.exports.AdapterEntry=i}),(function(e,t,n){function i(e){Y.isObject(e)&&(rt=e)}function r(){return rt}function o(e){var t=0;try{var n=e.getSlotId().getId().split("_");t=parseInt(n[n.length-1])}catch(i){}return t}function a(e,t){var n=[];return Y.isFunction(t.getSizes)&&Y.forEachOnArray(t.getSizes(window.innerWidth,window.innerHeight),(function(t,i){Y.isFunction(i.getWidth)&&Y.isFunction(i.getHeight)?n.push([i.getWidth(),i.getHeight()]):(Y.logWarning(e+", size object does not have getWidth and getHeight method. Ignoring: "),Y.logWarning(i))})),n}function s(e,t){Y.isObject(e)&&Y.isFunction(e.getDivID)&&Y.isArray(t)&&t[0]&&t[0]==e.getDivID()&&(e.setDisplayFunctionCalled(!0),e.setArguments(t))}function d(e,t,n){if(Y.isOwnProperty(ot.slotsMap,e))n||ot.slotsMap[e].setSizes(ot.getAdSlotSizesArray(e,t));else{var i=J.createSlot(e);i.setDivID(e),i.setPubAdServerObject(t),i.setAdUnitID(t.getAdUnitPath()),i.setAdUnitIndex(ot.getAdUnitIndex(t)),i.setSizes(ot.getAdSlotSizesArray(e,t)),i.setStatus(V.SLOT_STATUS.CREATED),et&&Y.isObject(JSON)&&Y.isFunction(JSON.stringify)&&Y.forEachOnArray(t.getTargetingKeys(),(function(e,n){i.setKeyValue(n,t.getTargeting(n))})),ot.slotsMap[e]=i,Y.createVLogInfoPanel(e,i.getSizes(window.innerWidth,window.innerHeight))}}function u(e){if(Y.isObject(e)&&Y.isFunction(e.getSlotId)){var t=e.getSlotId();if(t&&Y.isFunction(t.getDomId))return t.getDomId()}return""}function c(e,t,n){Y.log("Generating slotsMap"),Y.forEachOnArray(e,(function(e,i){var r=ot.generateSlotName(i);ot.storeInSlotsMap(r,i,n),n&&Y.isOwnProperty(ot.slotsMap,r)&&ot.setDisplayFunctionCalledIfRequired(ot.slotsMap[r],t)})),Y.log(ot.slotsMap)}function l(e){return Y.isOwnProperty(ot.slotsMap,e)?ot.slotsMap[e].getStatus():V.SLOT_STATUS.DISPLAYED}function g(e,t){Y.isOwnProperty(ot.slotsMap,e)&&ot.slotsMap[e].updateStatusAfterRendering(t)}function p(e){var t=[];return Y.forEachOnObject(ot.slotsMap,(function(n,i){Y.isOwnProperty(e,i.getStatus())&&t.push(n)})),t}function f(e){var t,n={};Y.isOwnProperty(ot.slotsMap,e)&&(t=ot.slotsMap[e].getPubAdServerObject(),Y.forEachOnArray(t.getTargetingKeys(),(function(e,i){n[i]=t.getTargeting(i)})),t.clearTargeting(),Y.forEachOnObject(n,(function(e,n){Y.isOwnProperty(ot.wrapperTargetingKeys,e)||t.setTargeting(e,n)})))}function I(e,t,n){Y.forEachOnArray(e,(function(e,i){if(Y.isOwnProperty(ot.slotsMap,i)){var r=ot.slotsMap[i];r.setStatus(V.SLOT_STATUS.PARTNERS_CALLED),n&&(ot.removeDMTargetingFromSlot(i),r.setRefreshFunctionCalled(!0),r.setArguments(t))}}))}function E(e){var t=[];return Y.forEachOnArray(e,(function(e,n){t.push(ot.slotsMap[n])})),t}function S(e){var t={};return Y.forEachOnObject(e,(function(e,n){t[n]=""})),t}function h(e){var t=z.getBid(e),n=t.wb||null,i=t.kvp||{},r=ot.slotsMap[e].getPubAdServerObject(),o=V.IGNORE_PREBID_KEYS;Y.log("DIV: "+e+" winningBid: "),Y.log(n),n&&n.getNetEcpm()>0&&(ot.slotsMap[e].setStatus(V.SLOT_STATUS.TARGETING_ADDED),z.setStandardKeys(n,i)),Y.handleHook(V.HOOKS.POST_AUCTION_KEY_VALUES,[i,r]),j.isUserIdModuleEnabled()&&j.getIdentityConsumers().indexOf(V.COMMON.GAM)>-1&&Y.setUserIdTargeting(),Y.forEachOnObject(i,(function(e,t){Y.isOwnProperty(o,e)||(r.setTargeting(e,t),ot.defineWrapperTargetingKey(e))}))}function m(e){Y.isObject(ot.wrapperTargetingKeys)||(ot.wrapperTargetingKeys={}),ot.wrapperTargetingKeys[e]=""}function w(e,t){return Y.isObject(e)&&Y.isFunction(t)?function(){return $=!0,Y.log("Disable Initial Load is called"),j.isIdentityOnly()?(Y.log(V.MESSAGES.IDENTITY.M5," DisableInitial Load function"),t.apply(e,arguments)):t.apply(e,arguments)}:(Y.logError("disableInitialLoad: originalFunction is not a function"),null)}function O(e,t){return Y.isObject(e)&&Y.isFunction(t)?function(){return Y.log("enableSingleRequest is called"),t.apply(e,arguments)}:(Y.log("enableSingleRequest: originalFunction is not a function"),null)}function A(e,t){return Y.isObject(e)&&Y.isFunction(t)?j.isIdentityOnly()?(Y.log(V.MESSAGES.IDENTITY.M5," Original Set Targeting function"),function(){return t.apply(e,arguments)}):function(){var n=arguments,i=n[0]?n[0]:null;return null!=i&&(Y.isOwnProperty(it,i)||(it[i]=[]),it[i]=it[i].concat(n[1])),t.apply(e,arguments)}:(Y.log("setTargeting: originalFunction is not a function"),null)}function y(e,t){return Y.isObject(e)&&Y.isFunction(t)?function(){var n=arguments[0]||window.googletag.pubads().getSlots();return Y.forEachOnArray(n,(function(e,t){delete nt[ot.generateSlotName(t)]})),t.apply(e,arguments)}:(Y.log("destroySlots: originalFunction is not a function"),null)}function T(e,t){return Y.isObject(e)&&Y.isFunction(t)?function(){var n=arguments[0];return n.forEach((function(e){e.bids.forEach((function(e){e.userId=Y.getUserIds()}))})),t.apply(e,arguments)}:(Y.log("newAddAunitfunction: originalFunction is not a function"),null)}function _(e,t,n,i){Y.log(e),Y.log(i),ot.updateStatusAfterRendering(i[0],!1),n.apply(t,i)}function P(e,t){var n=t.getStatus();n!=V.SLOT_STATUS.DISPLAYED&&n!=V.SLOT_STATUS.TARGETING_ADDED&&ot.findWinningBidAndApplyTargeting(e)}function D(e,t,n){ot.getStatusOfSlotForDivId(n[0])!=V.SLOT_STATUS.DISPLAYED?ot.updateStatusAndCallOriginalFunction_Display("Calling original display function after timeout with arguments, ",e,t,n):Y.log("AdSlot already rendered")}function v(e,t,n){var i=0,r=10,o=window.setInterval((function(){(Y.getExternalBidderStatus(t)&&z.getAllPartnersBidStatuses(window.PWT.bidMap,t)||i>=e)&&(window.clearInterval(o),Y.resetExternalBidderStatus(t),n()),i+=r}),r)}function C(e,t,n,i){switch(e){case V.SLOT_STATUS.CREATED:case V.SLOT_STATUS.PARTNERS_CALLED:ot.executeDisplay(j.getTimeout(),Object.keys(ot.slotsMap),(function(){Y.forEachOnObject(ot.slotsMap,(function(e,t){ot.findWinningBidIfRequired_Display(e,t)})),ot.processDisplayCalledSlot(t,n,i)}));break;case V.SLOT_STATUS.TARGETING_ADDED:ot.updateStatusAndCallOriginalFunction_Display("As DM processing is already done, Calling original display function with arguments",t,n,i);break;case V.SLOT_STATUS.DISPLAYED:ot.updateStatusAndCallOriginalFunction_Display("As slot is already displayed, Calling original display function with arguments",t,n,i)}}function R(e,t,n){if(e.length>0){ot.updateStatusOfQualifyingSlotsBeforeCallingAdapters(e,t,n);var i=ot.arrayOfSelectedSlots(e);X.callAdapters(i)}}function M(e,t){return q.getUserConsentDataFromCMP(),Y.isObject(e)&&Y.isFunction(t)?j.isIdentityOnly()?(Y.log(V.MESSAGES.IDENTITY.M5," Original Display function"),function(){return j.isUserIdModuleEnabled()&&j.getIdentityConsumers().indexOf(V.COMMON.GAM)>-1&&Y.setUserIdTargeting(e),t.apply(e,arguments)}):function(){if(Y.log("In display function, with arguments: "),Y.log(arguments),$)return Y.log("DisableInitialLoad was called, Nothing to do"),t.apply(e,arguments);ot.updateSlotsMapFromGoogleSlots(e.pubads().getSlots(),arguments,!0),ot.displayFunctionStatusHandler(l(arguments[0]),e,t,arguments);var n={};n[V.SLOT_STATUS.CREATED]="",ot.forQualifyingSlotNamesCallAdapters(p(n),arguments,!1);var i=arguments[0];setTimeout((function(){Y.realignVLogInfoPanel(i),z.executeAnalyticsPixel()}),2e3+j.getTimeout())}:(Y.log("display: originalFunction is not a function"),null)}function b(e){ot.displayHookIsAdded||(ot.displayHookIsAdded=!0,Y.log("Adding hook on googletag.display."),Y.addHookOnFunction(e,!1,"display",this.newDisplayFunction))}function N(e,t,n){return Y.isOwnProperty(ot.slotsMap,e)&&ot.slotsMap[e].isRefreshFunctionCalled()===!0&&ot.slotsMap[e].getStatus()!==V.SLOT_STATUS.DISPLAYED?(ot.findWinningBidAndApplyTargeting(t),ot.updateStatusAfterRendering(t,!0),!0):n}function F(e,t){Y.createVLogInfoPanel(e,ot.slotsMap[t].getSizes(window.innerWidth,window.innerHeight)),Y.realignVLogInfoPanel(e),z.executeAnalyticsPixel()}function B(e,t,n,i){Y.log("Executing post timeout events, arguments: "),Y.log(i);var r=!1;Y.forEachOnArray(e,(function(e,t){var n=ot.slotsMap[t].getDivID();r=ot.findWinningBidIfRequired_Refresh(t,n,r),window.setTimeout((function(){ot.postRederingChores(n,t)}),2e3)})),this.callOriginalRefeshFunction(r,t,n,i)}function L(e,t,n,i){e===!0?(Y.log("Calling original refresh function post timeout"),n.apply(t,i)):Y.log("AdSlot already rendered")}function x(e,t){var n=[],i=[];return i=0==e.length||null==e[0]?t.getSlots():e[0],Y.forEachOnArray(i,(function(e,t){var i=ot.generateSlotName(t);i.length>0&&(n=n.concat(i))})),n}function U(e,t){return q.getUserConsentDataFromCMP(),Y.isObject(e)&&Y.isFunction(t)?j.isIdentityOnly()?(Y.log("Identity Only Enabled. No Process Need. Calling Original Display function"),function(){return t.apply(e,arguments)}):function(){Y.log("In Refresh function"),ot.updateSlotsMapFromGoogleSlots(e.getSlots(),arguments,!1);var n=x(arguments,e);ot.forQualifyingSlotNamesCallAdapters(n,arguments,!0),Y.log("Intiating Call to original refresh function with Timeout: "+j.getTimeout()+" ms");var i=arguments;ot.executeDisplay(j.getTimeout(),n,(function(){ot.postTimeoutRefreshExecution(n,e,t,i)}))}:(Y.log("refresh: originalFunction is not a function"),null)}function G(e){if(Y.isObject(e)&&Y.isObject(e.googletag)&&Y.isFunction(e.googletag.pubads)){var t=e.googletag,n=t.pubads();return Y.isObject(n)?(Y.addHookOnFunction(n,!1,"disableInitialLoad",ot.newDisableInitialLoadFunction),Y.addHookOnFunction(n,!1,"enableSingleRequest",ot.newEnableSingleRequestFunction),ot.newAddHookOnGoogletagDisplay(t),Y.addHookOnFunction(n,!1,"refresh",ot.newRefreshFuncton),Y.addHookOnFunction(n,!1,"setTargeting",ot.newSetTargetingFunction),Y.addHookOnFunction(t,!1,"destroySlots",ot.newDestroySlotsFunction),!0):!1}return!1}function W(e){return Y.isObject(e)?(e.googletag=e.googletag||{},e.googletag.cmd=e.googletag.cmd||[],!0):!1}function k(e){if(j.isUserIdModuleEnabled()&&(Q.register().sC(),j.isIdentityOnly()&&j.getIdentityConsumers().indexOf(V.COMMON.PREBID)>-1&&!Y.isUndefined(e.pbjs)&&!Y.isUndefined(e.pbjs.que)?(pbjs.que.unshift((function(){Y.log("Adding Hook on pbjs.addAddUnits()");var e=window.pbjs,n="addAdUnits";Y.addHookOnFunction(e,!1,n,t.newAddAdUnitFunction)})),Y.log("Identity Only Enabled and setting config")):Y.logWarning("Window.pbjs is undefined")),Y.isUndefined(e.google_onload_fired)&&Y.isObject(e.googletag)&&Y.isArray(e.googletag.cmd)&&Y.isFunction(e.googletag.cmd.unshift)){Y.log("Succeeded to load before GPT");var t=this;return e.googletag.cmd.unshift((function(){Y.log("OpenWrap initialization started"),t.addHooks(e),Y.log("OpenWrap initialization completed")})),!0}return Y.logError("Failed to load before GPT"),!1}function H(e){return Y.isObject(e)&&Y.isObject(e.PWT)&&Y.isFunction(e.PWT.jsLoaded)?(e.PWT.jsLoaded(),!0):!1}function K(e){e.PWT.safeFrameMessageListenerAdded||(Y.addMessageEventListenerForSafeFrame(e),e.PWT.safeFrameMessageListenerAdded=!0)}var j=n(2),V=n(4),Y=n(1),z=n(6),q=n(7),X=n(11),J=n(13),Q=n(12),Z=!1;t.displayHookIsAdded=Z;var $=!1,et=!0,tt={};t.wrapperTargetingKeys=tt;var nt={};t.slotsMap=nt;var it={},rt=null,ot=this;t.setWindowReference=i,t.getWindowReference=r,t.getAdUnitIndex=o,t.getAdSlotSizesArray=a,t.setDisplayFunctionCalledIfRequired=s,t.storeInSlotsMap=d,t.generateSlotName=u,t.updateSlotsMapFromGoogleSlots=c,t.getStatusOfSlotForDivId=l,t.updateStatusAfterRendering=g,t.getSlotNamesByStatus=p,t.removeDMTargetingFromSlot=f,t.updateStatusOfQualifyingSlotsBeforeCallingAdapters=I,t.arrayOfSelectedSlots=E,t.defineWrapperTargetingKeys=S,t.findWinningBidAndApplyTargeting=h,t.defineWrapperTargetingKey=m,t.newDisableInitialLoadFunction=w,t.newEnableSingleRequestFunction=O,t.newSetTargetingFunction=A,t.newDestroySlotsFunction=y,t.newAddAdUnitFunction=T,t.updateStatusAndCallOriginalFunction_Display=_,t.findWinningBidIfRequired_Display=P,t.processDisplayCalledSlot=D,t.executeDisplay=v,t.displayFunctionStatusHandler=C,t.forQualifyingSlotNamesCallAdapters=R,t.newDisplayFunction=M,t.newAddHookOnGoogletagDisplay=b,t.findWinningBidIfRequired_Refresh=N,t.postRederingChores=F,t.postTimeoutRefreshExecution=B,t.callOriginalRefeshFunction=L,t.getQualifyingSlotNamesForRefresh=x,t.newRefreshFuncton=U,t.addHooks=G,t.defineGPTVariables=W,t.addHooksIfPossible=k,t.callJsLoadedIfRequired=H,t.initSafeFrameListener=K,t.init=function(e){return j.initConfig(),Y.isObject(e)?(ot.setWindowReference(e),ot.initSafeFrameListener(e),ot.wrapperTargetingKeys=ot.defineWrapperTargetingKeys(V.WRAPPER_TARGETING_KEYS),ot.defineGPTVariables(e),X.registerAdapters(),ot.addHooksIfPossible(e),ot.callJsLoadedIfRequired(e),!0):!1}}),(function(e,t,n){function i(){return Math.floor(100*Math.random())}function r(e,t,n){g.forEachOnObject(e,(function(e,i){E.setInitTimeForSlotsForAdapter(t,e),i.fB(t,n)}))}function o(e,t){g.forEachOnArray(e,(function(e,n){var i=n.getDivID();p.resetBid(i,t),p.setSizes(i,g.generateSlotNamesFromPattern(n,"_W_x_H_"))}))}function a(e,t){return!(e>=c.getAdapterThrottle(t))}function s(e,t){g.forEachOnObject(e,(function(e,n){p.setCallInitTime(n.getDivID(),t)}))}function d(e){if(e){var t=e.ID();g.isFunction(e.fB)?E.registeredAdapters[t]=e:g.log(t+l.MESSAGES.M3)}else g.log(l.MESSAGES.M3),g.log(e)}function u(){E.registerAdapter(f.register())}var c=n(2),l=n(4),g=n(1),p=n(6),f=n(12),I={};t.registeredAdapters=I;var E=this;t.callAdapters=function(e){var t=g.generateUUID();E.resetSlots(e,t),E.callAdapter(I,e,t)},t.getRandomNumberBelow100=i,t.callAdapter=r,t.resetSlots=o,t.throttleAdapter=a,t.setInitTimeForSlotsForAdapter=s,t.registerAdapter=d,t.registerAdapters=u}),(function(e,t,n){function i(e,t,n){var i=n||e.regexPattern||void 0,r=h.createBid(e.bidderCode,t),o=parseInt(e.pubmaticServerErrorCode);return r.setGrossEcpm(e.cpm),r.setDealID(e.dealId),r.setDealChannel(e.dealChannel),r.setAdHtml(e.ad||""),r.setAdUrl(e.adUrl||""),r.setWidth(e.width),r.setHeight(e.height),r.setMi(e.mi),e.native&&r.setNative(e.native),i&&r.setRegexPattern(i),r.setReceivedTime(e.responseTimestamp),r.setServerSideResponseTime(e.serverSideResponseTime),E.getAdServerCurrency()&&(m.isOwnProperty(e,"originalCpm")||(e.originalCpm=e.cpm),m.isOwnProperty(e,"originalCurrency")||(e.originalCurrency=m.getCurrencyToDisplay()),r.setOriginalCpm(window.parseFloat(e.originalCpm)),r.setOriginalCurrency(e.originalCurrency),m.isFunction(e.getCpmInNewCurrency)?r.setAnalyticsCpm(window.parseFloat(e.getCpmInNewCurrency(S.COMMON.ANALYTICS_CURRENCY))):r.setAnalyticsCpm(r.getGrossEcpm())),1===o||2===o||6===o||11===o||12===o?(r.setDefaultBidStatus(-1),r.setWidth(0),r.setHeight(0)):3===o||4===o||5===o?(r.setDefaultBidStatus(0),0===r.isServerSide&&r.setPostTimeoutStatus()):o&&r.setDefaultBidStatus(1),m.forEachOnObject(e.adserverTargeting,(function(e,t){"hb_format"!==e&&"hb_source"!==e&&r.setKeyValuePair(e,t)})),r}function r(e,t){var n={responseKGPV:"",responseRegex:""};t.kgpvs.length>0&&t.kgpvs.forEach((function(t){e.bidderCode==t.adapterID&&(n.responseKGPV=t.kgpv,n.responseRegex=t.regexPattern)}));var i=n.responseKGPV.split("@"),r=1,o=!1;if(i&&(2==i.length||3==i.length&&(r=2)&&(o=!0))){var a=i[r],s=null;i[r].indexOf(":")>0&&(a=i[r].split(":")[0],s=i[r].split(":")[1]),e.getSize()&&e.getSize()!=a&&"0X0"!=e.getSize().toUpperCase()&&(i[0].toUpperCase()==a.toUpperCase()&&(i[0]=e.getSize().toLowerCase()),n.responseKGPV=o?i[0]+"@"+i[1]+"@"+e.getSize():i[0]+"@"+e.getSize(),s&&(n.responseKGPV=n.responseKGPV+":"+s))}return n}function o(e){var t=e.adUnitCode||"";if(m.isOwnProperty(P.kgpvMap,t)){if("pubmaticServer"===e.bidderCode&&(e.bidderCode=e.originalBidder),P.isSingleImpressionSettingEnabled){var n=P.checkAndModifySizeOfKGPVIfRequired(e,P.kgpvMap[t]);P.kgpvMap[t].kgpv=n.responseKGPV,P.kgpvMap[t].regexPattern=n.responseRegex}if(e.bidderCode&&E.isServerSideAdapter(e.bidderCode)){var i=P.kgpvMap[t].divID;if(!P.isSingleImpressionSettingEnabled){var r=P.getPBCodeWithWidthAndHeight(i,e.bidderCode,e.width,e.height),o=P.getPBCodeWithoutWidthAndHeight(i,e.bidderCode);if(m.isOwnProperty(P.kgpvMap,r))t=r;else{if(!m.isOwnProperty(P.kgpvMap,o))return m.logWarning("Failed to find kgpv details for S2S-adapter:"+e.bidderCode),void 0;t=o}}e.ss=E.isServerSideAdapter(e.bidderCode)?1:0}e.bidderCode&&(e.timeToRespond0){if(m.forEachOnArray(P.kgpvMap[g].kgpvs,(function(t,n){n.adapterID==e&&(I=!0)})),I&&u(t,g,e))return}else P.kgpvMap[g]={kgpvs:[],divID:f};if(!I){var S={adapterID:e,kgpv:r,regexPattern:l};P.kgpvMap[g].kgpvs.push(S)}}else o?(g=P.getPBCodeWithWidthAndHeight(f,e,d,c),p=[[d,c]]):(g=P.getPBCodeWithoutWidthAndHeight(f,e),p=a.getSizes()),P.kgpvMap[g]={kgpv:r,divID:f,regexPattern:l};if(E.isServerSideAdapter(e))return m.log("Not calling adapter: "+e+", for "+r+", as it is serverSideEnabled."),void 0;if(m.isOwnProperty(t,g)){if(P.isSingleImpressionSettingEnabled&&u(t,g,e))return}else t[g]={code:g,mediaTypes:m.getMediaTypeObject(E.getNativeConfiguration(),p,a),sizes:p,bids:[],divID:f};var h={};switch(m.forEachOnObject(s,(function(e,t){h[e]=t})),e){case"pubmaticServer":h.publisherId=n.publisherId,h.adUnitIndex=""+a.getAdUnitIndex(),h.adUnitId=a.getAdUnitID(),h.divId=a.getDivID(),h.adSlot=r,h.wiid=i,h.profId=E.getProfileID(),window.PWT.udpv&&(h.verId=E.getProfileDisplayVersionID()),t[g].bids.push({bidder:e,params:h});break;case"pubmatic":case"pubmatic2":h.publisherId=n.publisherId,h.adSlot=h.slotName||r,h.wiid=i,h.profId="pubmatic2"==e?n.profileId:E.getProfileID(),"pubmatic2"!=e&&window.PWT.udpv&&(h.verId=E.getProfileDisplayVersionID()),t[g].bids.push({bidder:e,params:h});break;case"pulsepoint":m.forEachOnArray(p,(function(n,i){var r={};m.forEachOnObject(s,(function(e,t){r[e]=t})),r.cf=i[0]+"x"+i[1],t[g].bids.push({bidder:e,params:r})}));break;case"adg":m.forEachOnArray(p,(function(n,i){var r={};m.forEachOnObject(s,(function(e,t){r[e]=t})),r.width=i[0],r.height=i[1],P.isSingleImpressionSettingEnabled&&u(t,g,e)||t[g].bids.push({bidder:e,params:r})}));break;case"yieldlab":m.forEachOnArray(p,(function(n,i){var r={};m.forEachOnObject(s,(function(e,t){r[e]=t})),r.adSize=i[0]+"x"+i[1],P.isSingleImpressionSettingEnabled&&u(t,g,e)||t[g].bids.push({bidder:e,params:r})}));break;case"ix":case"indexExchange":m.forEachOnArray(p,(function(n,i){var r={};s.siteID&&(r.siteId=s.siteID),r.size=i,t[g].bids.push({bidder:e,params:r})}));break;default:t[g].bids.push({bidder:e,params:h})}}function l(e,t,n,i,r){m.log(e+S.MESSAGES.M1),t&&m.forEachGeneratedKey(e,i,t,r,[],n,P.generatedKeyCallback,!0)}function g(e){m.forEachOnObject(S.SRA_ENABLED_BIDDERS,(function(t){m.isOwnProperty(A.adapters,t)&&(e[t]={singleRequest:!0})}))}function p(e,t){if(!window[T])return m.logError("PreBid js is not loaded"),void 0;if(!m.isFunction(window[T].onEvent))return m.logWarning("PreBid js onEvent method is not available"),void 0;v||(window[T].onEvent("bidResponse",P.pbBidStreamHandler),v=!0),window[T].logging=m.isDebugLogEnabled();var n={},i=O.getRandomNumberBelow100();E.forEachAdapter((function(r,o){r!==P.parentAdapterID&&(E.isServerSideAdapter(r)||0==O.throttleAdapter(i,r)?(O.setInitTimeForSlotsForAdapter(e,r),P.generatePbConf(r,o,e,n,t)):m.log(r+S.MESSAGES.M2))}));var r=[];for(var o in n)m.isOwnProperty(n,o)&&r.push(n[o]);if(r.length>0&&window[T])try{if(m.isFunction(window[T].setConfig)||"function"==typeof window[T].setConfig){var a={debug:m.isDebugLogEnabled(),bidderSequence:"random",userSync:{enableOverride:!0,syncsPerBidder:0,iframeEnabled:!0,pixelEnabled:!0,enabledBidders:(function(){var e=[];return E.forEachAdapter((function(t){e.push(t)})),e})(),syncDelay:2e3},disableAjaxTimeout:E.getDisableAjaxTimeout()};E.getGdpr()&&(a.consentManagement={cmpApi:E.getCmpApi(),timeout:E.getGdprTimeout(),allowAuctionWithoutConsent:E.getAwc()}),E.getAdServerCurrency()&&(m.log(S.MESSAGES.M26+E.getAdServerCurrency()),a.currency={adServerCurrency:E.getAdServerCurrency(),granularityMultiplier:1}),P.assignSingleRequestConfigForBidders(a),m.handleHook(S.HOOKS.PREBID_SET_CONFIG,[a]),E.isUserIdModuleEnabled()&&(a.userSync.userIds=m.getUserIdConfiguration()),window[T].setConfig(a)}if(!m.isFunction(window[T].requestBids)&&"function"!=typeof window[T].requestBids)return m.log("PreBid js requestBids function is not available"),void 0;m.handleHook(S.HOOKS.PREBID_REQUEST_BIDS,[r]),window[T].requestBids({adUnits:r,bidsBackHandler:function(e){m.log("In PreBid bidsBackHandler with bidResponses: "),m.log(e),setTimeout(window[T].triggerUserSyncs,10),m.forEachOnObject(e,(function(e){w.setAllPossibleBidsReceived(P.kgpvMap[e].divID)}))},timeout:D})}catch(s){m.logError("Error occured in calling PreBid."),m.logError(s)}}function f(){return P.parentAdapterID}function I(){if(m.isFunction(window[T].setConfig)||"function"==typeof window[T].setConfig){var e={debug:m.isDebugLogEnabled(),userSync:{syncDelay:2e3}};E.getGdpr()&&(e.consentManagement={cmpApi:E.getCmpApi(),timeout:E.getGdprTimeout(),allowAuctionWithoutConsent:E.getAwc()}),E.isUserIdModuleEnabled()&&(e.userSync.userIds=m.getUserIdConfiguration()),window[T].setConfig(e),window[T].requestBids([])}}var E=n(2),S=n(4),h=n(5),m=n(1),w=n(6),O=n(11),A=n(3),y=S.COMMON.PARENT_ADAPTER_PREBID,T=S.COMMON.PREBID_NAMESPACE;t.parentAdapterID=y;var _={};t.kgpvMap=_;var P=this,D=E.getTimeout()-50,v=!1,C=E.isSingleImpressionSettingEnabled();t.isSingleImpressionSettingEnabled=C,t.transformPBBidToOWBid=i,t.checkAndModifySizeOfKGPVIfRequired=r,t.pbBidStreamHandler=o,t.handleBidResponses=a,t.getPBCodeWithWidthAndHeight=s,t.isAdUnitsCodeContainBidder=u,t.getPBCodeWithoutWidthAndHeight=d,t.generatedKeyCallback=c,t.generatePbConf=l,t.assignSingleRequestConfigForBidders=g,t.fetchBids=p,t.setConfig=I,t.getParenteAdapterID=f,t.register=function(){return{fB:P.fetchBids,ID:P.getParenteAdapterID,sC:P.setConfig}}}),(function(e,t,n){function i(e){this.name=e,this.status=r.SLOT_STATUS.CREATED,this.divID="",this.adUnitID="",this.adUnitIndex=0,this.sizes=[],this.keyValues={},this.arguments=[],this.pubAdServerObject=null,this.displayFunctionCalled=!1,this.refreshFunctionCalled=!1}var r=n(4);i.prototype.getName=function(){return this.name},i.prototype.setStatus=function(e){return this.status=e,this},i.prototype.getStatus=function(){return this.status},i.prototype.setDivID=function(e){return this.divID=e,this},i.prototype.getDivID=function(){return this.divID},i.prototype.setAdUnitID=function(e){return this.adUnitID=e,this},i.prototype.getAdUnitID=function(){return this.adUnitID},i.prototype.setAdUnitIndex=function(e){return this.adUnitIndex=e,this},i.prototype.getAdUnitIndex=function(){return this.adUnitIndex},i.prototype.setSizes=function(e){return this.sizes=e,this},i.prototype.getSizes=function(){return this.sizes},i.prototype.setKeyValue=function(e,t){return this.keyValues[e]=t,this},i.prototype.setKeyValues=function(e){return this.keyValues=e,this},i.prototype.getkeyValues=function(){return this.keyValues},i.prototype.setArguments=function(e){return this.arguments=e,this},i.prototype.getArguments=function(){return this.arguments},i.prototype.setPubAdServerObject=function(e){return this.pubAdServerObject=e,this},i.prototype.getPubAdServerObject=function(){return this.pubAdServerObject},i.prototype.setDisplayFunctionCalled=function(e){return this.displayFunctionCalled=e,this},i.prototype.isDisplayFunctionCalled=function(){return this.displayFunctionCalled},i.prototype.setRefreshFunctionCalled=function(e){return this.refreshFunctionCalled=e,this},i.prototype.isRefreshFunctionCalled=function(){return this.refreshFunctionCalled},i.prototype.updateStatusAfterRendering=function(e){this.status=r.SLOT_STATUS.DISPLAYED,this.arguments=[],e?this.refreshFunctionCalled=!1:this.displayFunctionCalled=!1},e.exports.Slot=i,t.createSlot=function(e){return new i(e)}})]);